<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<ul class="breadcrumb">
				<li><span class="c-999">Pack生产厂区管理</span> <i
					class="icon-angle-right"></i>
				</li>
				<li><a class="c-666" onclick="util.showContent('pages/basic/packFactory.jsp')">Pack生产厂区管理</a></li>
			</ul>
		</div>
	</div>

	<div class="search-box">
		<div class="search-title">
			<span class="search-criteria c-666">&nbsp;查询条件</span>
		</div>
		<form id="customer_search_form">
			<table class="search-body" border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td>
						<label class="my-label">厂区名称:</label><select id="serach_packfactoryName" name="serach_packfactoryName" class='my-select'>
								<option value=""></option>
							</select>
							
					</td>
				</tr>
			</table>
		</form>
		<ul class="search-button">
			<li><button class="btn blue" id="btn_query">查&nbsp;&nbsp;询</button></li>
			<li><button class="btn blue" id="btn_reset">重&nbsp;&nbsp;置</button></li>
		</ul>
	</div>
	
	<div class="table-con">
		<div class="table-head">
			&nbsp;&nbsp;&nbsp;<i class="icon-reorder"></i>&nbsp;列表详情
		</div>
		<div class="list-body">
			<div class="portlet-body">
				<p>
					<button type="button" class="btn blue hide" id="pack_factory_table_add" data-toggle="modal">新&nbsp;&nbsp;增</button>
					<button id="pack_factory_table_edit" class="btn green hide" data-toggle="modal">
							编&nbsp;&nbsp;辑
					</button>
					<button id="pack_factory_table_del" class="btn red hide">
							删&nbsp;&nbsp;除
					</button>
				</p>
			</div>
			<div class="table-responsive">
				<table class="table table-striped table-hover table-bordered"
					id="pack_factory_table">
					<thead>
						<tr>
							<th class="sorting_asc_disabled" style="width:8px;"><input
								type="checkbox" class="group-checkable"
								data-set="#pack_factory_table .checkboxes" />
							</th>
							<th class="fourMinWidth">厂区编码</th>
							<th class="fourMinWidth">厂区名称</th>
							<th class="twoMinWidth">地区</th>
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
			</div>
		</div>
	</div>

<!--新增厂区-->
	<div id="add-pack-plant" class="modal hide fade _hidden_bs_modal" tabindex="-1" data-focus-on="input:first">
		<div class="modal-header bg-green c-bold c-fff">
			<span id='pack_factory_add_title'></span>
		</div>
		<div class="modal-body add-factory-body">
		    <form id="pack_factory_form">
			    <input name="pkId" id="pkId" class="hide" value=""/>
				<table class="table">
					<tr>
					    <td><span class="al-right"><i class="c-red">*&nbsp;</i>厂区编码：</span><input type="text" name="packfactoryCode" data-required="1" id="packfactoryCode" maxLength='6'/></td>
						<td><span class="al-right"><i class="c-red">*&nbsp;</i>厂区名称：</span><input type="text" name="packfactoryName" data-required="1" id="packfactoryName" maxLength='300'/></td>
						
					</tr>
					<tr>
						<td colspan="2">
						<span class="al-right"><i class="c-red">*&nbsp;</i>所属地：</span>
						    <div id="cityDiv" style="display:inline;">
								<select class="prov zoneSelect" name="province" id="province" style="margin-left:3px;"></select>  
							    <select class="city zoneSelect" disabled="disabled" name="city" id="city"></select> 
							    <select class="dist zoneSelect" disabled="disabled" name="area" id="area"></select> 
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2"><span class="al-right">&nbsp;详细地址：</span><input type="text" style="width: 579px;" id='address' maxLength='85'/></td>
					</tr>
					<tr>
						<td><span class="al-right">&nbsp;邮编：</span><input type="text" id='zipCode' name='zipCode' maxLength='6'/></td>
						<td>&nbsp;</td>
					</tr>
				</table>
			</form>
		</div>
		<div class="modal-footer al-center bg-fff">
			<button id='pack_factory_add_save' type="button" class="btn green" style="margin-right: 25px;">保存</button>
			<button type="button" data-dismiss="modal" class="btn red" id="pack_factory_add_cancel">取消</button>
		</div>
	</div>
	
<!-- 详情 -->	
<div id="addID-detail" class="modal hide fade _hidden_bs_modal" tabindex="-1" data-focus-on="input:first" style="height:300px">
		<div class="modal-header add-customer-header bg-green c-bold c-fff">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
			<span>详情</span>
		</div>
		<div class="modal-body add-factory-body">
				<table class="table">
					<tr>
					    <td><span class="al-right"><i class="c-red">*&nbsp;</i>厂区编码：</span><span class="my-text" id="detail_code"></span></td>
						<td><span class="al-right"><i class="c-red">*&nbsp;</i>厂区名称：</span><span class="my-text" id="detail_name"></span></td>
						
					</tr>
					<tr>
						<td><span class="al-right">所属市地：</span><span class="my-text" id="detail_city"></span></td>
						<td><span class="al-right">所属省份：</span><span class="my-text" id="detail_province"></span></td>
					</tr>
					<tr>
					   <td colspan="2"><span class="al-right">详细地址：</span><span class="my-text-579" id="detail_address"></span></td>
				    </tr>
					<tr>
						<td><span class="al-right">&nbsp;邮编：</span><span class="my-text" id="detail_zipCode"></span></td>
						<td>&nbsp;</td>
					</tr>
				</table>
		</div>
	</div>
</div>

<!-- 模态窗口 str -->
<jsp:include page="/pages/common/modal.jsp"></jsp:include>

<script type="text/javascript" src="pages/basic/js/packFactory.js"></script>
<script type="text/javascript" src="script/jquery/js/jquery.cityselect.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function() {
		packFactory.init();
	});
</script>

